#include "state_terminated.h"

#include "State/agent.h"

STATE_TERMINATED::STATE_TERMINATED()
{

}

STATE_TERMINATED::~STATE_TERMINATED()
{

}

int STATE_TERMINATED::check_transition_event_initialize()
{
    return 0;
}

int STATE_TERMINATED::check_transition_event_terminate()
{
    return 0;
}

int STATE_TERMINATED::check_transition_event_error()
{
    return 0;
}

int STATE_TERMINATED::perform_transition_event_initialize(Agent *sub)
{
    sub->setSelfState(sub->pIdle);
    return 0;
}

int STATE_TERMINATED::perform_transition_event_terminate(Agent *sub)
{
    sub->setSelfState(sub->pTerminated);
    return 0;
}

int STATE_TERMINATED::perform_transition_event_error(Agent *sub)
{
    sub->setSelfState(sub->pError);
    return 0;
}
